package cn.j2ee.chapter2.db.transaction;

import javax.transaction.xa.Xid;

/**
 * 
 * 2016年11月21日 下午6:11:39
 */
public class XidImpl implements Xid{

	protected int formatId;
	protected byte gtrid[];
	protected byte bqual[];

	public XidImpl(){}
	
	public XidImpl(int formatId, byte[] gtrid, byte[] bqual) {
		this.formatId = formatId;
		this.gtrid = gtrid;
		this.bqual = bqual;
	}

	public byte[] getGtrid() {
		return gtrid;
	}

	public void setGtrid(byte[] gtrid) {
		this.gtrid = gtrid;
	}

	public byte[] getBqual() {
		return bqual;
	}

	public void setBqual(byte[] bqual) {
		this.bqual = bqual;
	}

	public void setFormatId(int formatId) {
		this.formatId = formatId;
	}

	@Override
	public byte[] getBranchQualifier() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getFormatId() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public byte[] getGlobalTransactionId() {
		// TODO Auto-generated method stub
		return null;
	}

}
